From 5964109ef30d4ab8df9c0a5a7c2806c5f57b1fe5 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 30 May 2009 00:05:35 -0400 Subject: [PATCH] Plug a memory leak in Xrandr code --- gdk/x11/gdkscreen-x11.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index a2eaceaf3a..cbf0930005 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -736,7 +736,10 @@ init_randr13 (GdkScreen *screen) randr12_compat |= !g_strcmp0(output->name, "default"); if (output->connection == RR_Disconnected) - continue; + { + XRRFreeOutputInfo (output); + continue; + } if (output->crtc) { -- 2.30.2